﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="KC_BZX_Query.aspx.cs" Inherits="CoolERP_Web.User.KC_BZX_Query" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../Scripts/lhgdialog/lhgcore.min.js" type="text/javascript"></script>
<script src="../Scripts/lhgdialog/lhgdialog.js" type="text/javascript"></script>
<script type="text/javascript">
    function queryMX(id) {
        var dg = new J.dialog({ id: 'select', title: '查看库存明细', page: 'KCMX.aspx?type=03&id=' + id, iconTitle: false, cover: true, btnBar: false, rang: true, autoSize: true, width: 900, height: 650 });
        dg.ShowDialog();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div>包装箱库存管理</div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags style="width:95%;">
                <li class=liTitle><div>库存查询</div></li>
            </ul>
            <table class="grvCSS" cellspacing="0" cellpadding=2 border="1" style="width:95%;border-collapse:collapse;">
                <tr>
                    <td style="text-align:right">产品线：</td><td style="text-align:left"><asp:DropDownList ID="ddlCPX" runat="server" CssClass="dropdown" AutoPostBack=true OnSelectedIndexChanged="ddlCPX_SelectedIndexChanged"/></td>
                    <td style="text-align:right">产品核心词：</td><td style="text-align:left"><asp:DropDownList ID="ddlCPHXC" runat="server" CssClass="dropdown"/></td>
                    <td style="text-align:right">包装类型：</td><td style="text-align:left"><asp:DropDownList ID="ddlLX" runat="server" CssClass="dropdown">
                        <asp:ListItem Value="">所有类型</asp:ListItem><asp:ListItem Value="0">普通包装</asp:ListItem><asp:ListItem Value="1">标准包装</asp:ListItem>
                    </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="text-align:right">编号：</td><td style="text-align:left"><asp:TextBox ID="tbBH" runat="server" CssClass="textbox"/></td>
                    <td style="text-align:right">名称：</td><td style="text-align:left"><asp:TextBox ID="tbMC" runat="server" CssClass="textbox"/></td>
                    <td colspan=2><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" onclick="btnQuery_Click" />
                    <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" /></td>
                </tr>
            </table>
            <ul class=tags style="width:95%;">
                <li class=liTitle><div>包装箱列表</div></li>
                <li class=liRight><asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/Images/Common/btn_create0.png" PostBackUrl="~/User/KC_BZX_Edit.aspx" /></li>
            </ul>
            <asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" Width="95%" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
                PageSize=20 ClientIDMode=Static OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                <ItemTemplate><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1 %></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="包装类型">
                    <ItemTemplate><%# Convert.ToInt32(Eval("LX")) == 0 ? "普通包装" : "标准包装"%></ItemTemplate>
                </asp:TemplateField>      
                <asp:BoundField DataField="BH" HeaderText="编号"/>
                <asp:BoundField DataField="MC" HeaderText="名称"/>
                <asp:TemplateField HeaderText="外（长*宽*高）">
                    <ItemTemplate><%# Eval("WChang")%>*<%# Eval("WKuan")%>*<%# Eval("WGao")%></ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="TJ" HeaderText="体积"/>    
                <asp:BoundField DataField="ZL" HeaderText="重量"/>
                <asp:BoundField DataField="BZFS" HeaderText="包装方式"/>
                <asp:BoundField DataField="BZ" HeaderText="备注" />
                <asp:TemplateField HeaderText="库存总量">
                    <ItemTemplate><div style="float:right"><%# Convert.ToDecimal(Eval("KCZL")).ToString("F")%></div></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="库存明细">
                    <ItemTemplate><input type=button value="查看" class=btn_s onclick="queryMX('<%#Eval("WPID") %>')" /></ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible=false />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>